import Mongoose from 'mongoose'

const uri = "mongodb+srv://qwe123:qwe123@clustertest.wspzg.mongodb.net/biz?retryWrites=true&w=majority";

Mongoose.connect(uri)

Mongoose.connection.once('open' , () => {
    console.log('connection open')
})
Mongoose.connection.once('close' , () => {
    console.log('connection close')
})


Mongoose.connection.on('connected',function() {
  console.log('Mongoose connection open to '+ uri);
});

Mongoose.connection.on('error',function(err) {
  console.log('Mongoose connection error: '+ err);
});
export default Mongoose